//
//  DataBaseHandle.h
//  行记
//
//  Created by dllo on 15/9/29.
//  Copyright (c) 2015年 lhch. All rights reserved.
//

#import <Foundation/Foundation.h>
@class CollectModel;

@interface DataBaseHandle : NSObject

+ (instancetype)shareDataBaseHandle; /**< 单例 */

- (BOOL)openSql; /**< 开启 */
- (BOOL)createTable:(NSString *)table; /**< 创建表单 */
- (BOOL)insertWithCollect:(CollectModel *)model withTable:(NSString *)table; /**< 插入 */
- (BOOL)updataWithCollect:(CollectModel *)model withTable:(NSString *)table; /**< 更新 */
- (BOOL)deleteWithNid:(NSString *)nid withTable:(NSString *)table; /**< 删除 */
- (NSArray *)selectStudentWithTable:(NSString *)table; /**< 查询 */
- (BOOL)dropTable:(NSString *)table; /**< 删除表单 */
- (BOOL)closeDB; /**< 关闭 */

@end
